﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMDBImportCIDLL
{
    public delegate void ShowMessageDelegate(string message);

    public enum ImportOperator
    {
        CreateAndUpdate = 1,
        CreateSkipUpdate = 2,
        Delete = 3
    }

    public static class Category
    {
        public const string RelationShip = "Relationship";
    }

    public static class DatasetId
    {
        public const string BMCASSET = "BMC.ASSET";
    }

    public static class ClassId
    {
        public const string BMC_MEMBEROFCOLLECTION = "BMC.CORE:BMC_MEMBEROFCOLLECTION";
        public const string BMC_BASERELATIONSHIP = "BMC.CORE:BMC_BASERELATIONSHIP";
        public const string BMC_COMPONENT = "BMC.CORE:BMC_COMPONENT";
        public const string BMC_DEPENDENCY = "BMC.CORE:BMC_DEPENDENCY";
    }


    public static class ShipType
    {
        public const string IMPCT = "影响";
        public const string MEMBEROFCOLLECTION = "成员";
        public const string COMPONENT = "组件";
        public const string DEPENDENCY = "依赖";
    }
    public static class Permission
    {
        public const string PUBLIC = "1000000000";
    }

    public static class ALLCompany
    {
        public static List<Company> CompanyList = new List<Company>()
        {
            new Company("福建省烟草专卖局", "1000000020"),
            new Company("厦门市烟草专卖局", "1000000022"),
            new Company("宁德市烟草专卖局", "1000000023"),
            new Company("莆田市烟草专卖局", "1000000024"),
            new Company("泉州市烟草专卖局", "1000000025"),
            new Company("漳州市烟草专卖局", "1000000026" ),
            new Company("龙岩市烟草专卖局", "1000000027"),
            new Company("三明市烟草专卖局", "1000000028"),
            new Company("南平市烟草专卖局", "1000000029" ),
            new Company("中国烟草福建进出口公司", "1000000030"),
            new Company("福建烟草海晟投资管理有限公司", "1000000031"),
            new Company("三明金叶复烤有限公司", "1000000032"),
            new Company("福建武夷烟叶有限公司", "1000000033" ),
            new Company("福州市烟草专卖局", "1000000047")
        };
    }

    public class Company
    {
        private string _CompanyName;
        private string _CompanyPermission;
        public Company(string companyName, string companyPermission)
        {
            _CompanyName = companyName;
            _CompanyPermission = companyPermission;
        }
        public string CompanyName
        {
            get { return this._CompanyName; }
            set { this._CompanyName = value; }
        }
        public string CompanyPermission
        {
            get { return this._CompanyPermission; }
            set { this._CompanyPermission = value; }
        }
    }

}
